
package basic;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.e885.log.E885Logger;

/**
 * 使用 spring 取得一個 HelloBean
 * 
 * @author Eric.Kao(gau168.gau@msa.hinet.net)
 * @version 1.0
 * @company E885 Group
 * @copyright Copyright (c) 2001-2008
 */

public class FirstSpringTester
{
	public FirstSpringTester()
	{
		ApplicationContext context = new ClassPathXmlApplicationContext( "basic/firstSpring.xml" );

		HelloBean bean = ( HelloBean )context.getBean( "helloBean" );

		E885Logger.testLog.debug( "get string:" + bean.getHelloWord() );
	}

	/**
	 * @param args
	 */
	public static void main( String[] args )
	{
		new FirstSpringTester();
	}

}
